<?php

namespace common\widgets;

/**
 * Class GridView
 *
 * @package common\widgets
 */
class GridView extends \kartik\grid\GridView
{

    /**
     * @const 使用自定义的select2组件
     */
    const FILTER_SELECT2 = 'common\widgets\Select2';

    /**
     * @const 使用自定义的日期选择控件
     */
    const FILTER_DATETIME = 'common\widgets\DateTimePicker';

    /**
     * {@inheritdoc}
     */
    public $dataColumnClass = 'common\widgets\grid\DataColumn';

    /**
     * {@inheritdoc}
     */
    public $summaryOptions = ['class' => 'summary pull-left'];

    /**
     * {@inheritdoc}
     */
    public $layout = "<div class='clearfix' style='height:48px;line-height:48px;'>{summary}\n<div class='pull-right'>{toolbar}</div></div>\n{items}\n{pager}";

    /**
     * {@inheritdoc}
     */
    public $toolbar = [
        '{toggleData}',
    ];

    /**
     * {@inheritdoc}
     */
    public $export = false;
}
